﻿<?
$main_menu=strtolower($this->uri->segment(1));
$help_str="";
$welcome_str="";
$lvs_str="";
$about_str="";
if ($main_menu=="main" || $main_menu=="")
{
    $welcome_str="class=\"active\"";
}
elseif ($main_menu=="lvs")
{
    $lvs_str="class=\"active\"";
}
elseif ($main_menu=="help")
{
    $help_str="class=\"active\"";
}
elseif ($main_menu=="about")
{
    $about_str="class=\"active\"";
}
echo "        <ul id=\"mainNav\">\n";
echo "        	<li><a href=\"/main\" ".$welcome_str.">主页</a></li> \n";
echo "        	<li><a href=\"/lvs/\" ".$lvs_str.">LVS管理</a></li>\n";
echo "        	<li><a href=\"javascript:alert('有时间再补上，呵呵！')\" ".$help_str.">帮助</a></li>\n";
echo "        	<li><a href=\"http://help.tianya.cn/about/about.html\" ".$about_str.">关于</a></li>\n";
echo "        	<li class=\"logout\"><a href=\"#\" onclick=\"javascript:window.close();\">退出</a></li>\n";
echo "        </ul>\n";
?>
